package com.jeesite.modules.fl.service;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.fl.dao.SysHolidayDao;
import com.jeesite.modules.fl.entity.SysHoliday;


@Service
@Transactional(readOnly=true)
public class SysHolidayService extends CrudService<SysHolidayDao,SysHoliday>{
	
	/**
	 * 获取单条数据
	 * @param holiday
	 * @return
	 */
	@Override
	public SysHoliday get(SysHoliday holiday) {
		SysHoliday entity = super.get(holiday);
		return entity;
	}

	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param holiday
	 * @return
	 */
	@Override
	public Page<SysHoliday> findPage(Page<SysHoliday> page, SysHoliday holiday) {
		return super.findPage(page, holiday);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param holiday
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(SysHoliday holiday) {
		super.save(holiday);

	}

	/**
	 * 更新状态
	 * @param holiday
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(SysHoliday holiday) {
		super.updateStatus(holiday);
	}
	
	/**
	 * 删除数据
	 * @param holiday
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(SysHoliday holiday) {
		super.delete(holiday);
	}
	
}
